package com.yongqi.duocai.entity.result;

import com.yongqi.duocai.entity.vo.OrderGoodsVo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiOperation;
import io.swagger.models.auth.In;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.List;

/**
 * 1.描述（@desc）：返回用户的订单结果集对象
 * 2.作者（@author）：夏亮辉
 * 3.日期（@date）：2021年06月24  14:21
 * 4.版本（@version）：1.0.0
 * 5.版权：
 */

@Data
@ApiModel(value="OrderResult对象", description="")
public class OrderResult {

    @ApiModelProperty(value = "订单id")
    private Integer id;

    @ApiModelProperty(value = "订单详情id")
    private String goodsDetailsId;

    @ApiModelProperty(value = "订单状态")
    private Integer state;

    @ApiModelProperty(value = "订单编号")
    private String no;

    @ApiModelProperty(value = "联系人")
    private String buyer;

    @ApiModelProperty(value = "电话")
    private String phone;

    @ApiModelProperty(value = "区域")
    private String area;

    @ApiModelProperty(value = "客户订单开票状态")
    private Boolean isMakeOutState;

    @ApiModelProperty(value = "地址")
    private String address;

    @ApiModelProperty(value = "收件地址id")
    private Integer addressId;

    @ApiModelProperty(value = "订单总数")
    private Integer sumCount;

    @ApiModelProperty(value = "订单总价")
    private BigDecimal total;

    private LocalDateTime endTime;

    private LocalDateTime createTime;

    private List<OrderGoodsVo> goodsInfo;

}
